package com.example.xyr.myapplication.utils;

import android.app.Activity;

import com.orhanobut.logger.Logger;

/**
 * Created by ylcf on 2018/7/16.
 */

public class LogUtil {

    public static void e(String log) {
        if (StringUtil.isNotEmpty(log)) {
            Logger.e("TAG", log);
        }
    }

    public static void e(String tag, String log) {
        if (StringUtil.isNotEmpty(log) && StringUtil.isNotEmpty(tag)) {
            Logger.init(tag);
            Logger.e( log);
        }
    }

    public static void e(String log, Activity activity) {
        if (StringUtil.isNotEmpty(log)) {
            Logger.e("TAG", "界面是：" + activity.getClass().getSimpleName() + "***" + log);
        }
    }
}
